import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    redirect:'/read',
  },
  {
    path: '/read',
    name: 'read',
    component: () => import(/* webpackChunkName: "about" */ '../views/read.vue'),
    meta:{
      title:'资料'
    }
  },
  {
    path: '/readweb',
    name: 'readweb',
    component: () => import(/* webpackChunkName: "about" */ '../views/readweb.vue'),
    meta:{
      title:'资料'
    }
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
